<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
    <style type="text/css">
        .btn-default {
            margin-left: 200px;
        }
    </style>
</head>
<body>
<form class="form-horizontal" action="{{ url_for('user.login') }}" method="POST" onsubmit="return check_login('a')">
    <div class="form-group">
        <label for="inputText3" class="col-sm-2 control-label">用户名</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="inputText3" name="user_name" placeholder="请输入用户名">
            <span id="info_user" style="color: red">{{ info_user }}</span>
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">密码：</label>
        <div class="col-sm-10">
            <input type="password" class="form-control" id="inputPassword3" name="pwd" placeholder="请输出8位密码"/>
            <span id="info_pwd" style="color: red">{{ info_pwd }}</span>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">登 陆</button>
            <button id="register" type="button" class="btn btn-default">注 册</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.js"></script>
<link type="text/css" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.0.2/css/bootstrap.css" rel="stylesheet"/>
<script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.0.2/js/bootstrap.js"></script>
<script src="{{ url_for('static', filename='js/login.js') }}"></script>
</body>
</html>